
// <copyright file="DataAvailableEventArgs.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   Encapsulates arguments of the event fired when data becomes
//   available on the telnet _socket.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Net
{
    using System;

    /// <summary>
    ///     Encapsulates arguments of the event fired when data becomes
    ///     available on the telnet _socket.
    /// </summary>
    public class DataAvailableEventArgs : EventArgs
    {
        #region Fields

        /// <summary>
        /// The data.
        /// </summary>
        private readonly string data;

        #endregion Fields

        #region Constructors and Finalizers

        /// <summary>
        /// Initializes a new instance of the <see cref="DataAvailableEventArgs"/> class.
        /// Creates a new instance of the DataAvailableEventArgs class.
        /// </summary>
        /// <param name="output">
        /// Output from the session.
        /// </param>
        public DataAvailableEventArgs(string output)
        {
            this.data = output;
        }

        #endregion Constructors and Finalizers

        #region Public Properties

        /// <summary>
        ///     Gets the data from the telnet session.
        /// </summary>
        public string Data
        {
            get
            {
                return this.data;
            }
        }

        #endregion Public Properties
    }
}
